package cate.game.role.bag.hero.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBBag;
import cate.game.role.Role;
import cate.game.role.bag.hero.HeroBag;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "英雄 初始化数据 の 返回")
public class HeroInitResp implements MsgOutput {

    @NoteField(value = "主角 [ 英雄 ] 背包数据")
    public HeroBag data;

    public HeroInitResp(){}

    public HeroInitResp(Role role) {
        this.data = role.getBag().hero;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBBag.HERO_INIT_RESP;
    }
}
